package com.cms.web;

import java.awt.image.BufferedImage;
import java.io.FileOutputStream;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.prefs.Preferences;

import org.jbarcode.JBarcode;
import org.jbarcode.encode.Code128Encoder;
import org.jbarcode.encode.Code39Encoder;
import org.jbarcode.encode.EAN13Encoder;
import org.jbarcode.paint.BaseLineTextPainter;
import org.jbarcode.paint.EAN13TextPainter;
import org.jbarcode.paint.WideRatioCodedPainter;
import org.jbarcode.paint.WidthCodedPainter;
import org.jbarcode.util.ImageUtil;

/**
 * 2008-10-4
 * @author 刘庆
 */
public class CaRegTest1 {

public static void main(String[] args) {
	Map map = new HashMap();
	map.put("1", "1");
	map.put("1", "2");
	System.out.println(map.get("1").toString());
		//列出 HKEY_CURRENT_USER/Environment 的所有键值的名称、类型和数据
//		RegistryKey env = new RegistryKey(RootKey.HKEY_CURRENT_USER,"Software\\Microsoft\\Internet Explorer\\PageSetup");		
//		if(env.hasValues()) {
//			Iterator<RegistryValue> values = env.values();
//			while(values.hasNext()) {
//				RegistryValue v = values.next();
//				System.out.println(v.getName()+"\t"+v.getType());
//				System.out.println("\t"+v.getData());
//			}
//		}
//		
//		//写入注册表
//		RegistryKey newKey = new RegistryKey(RootKey.HKEY_CURRENT_USER,"Environment\\NewKey");
//		newKey.create();//创建新的键HKEY_CURRENT_USER/Environment/NewKey
//		RegistryValue value = new RegistryValue("My Paht",ValueType.REG_SZ,"hahah\\lalal");
//		newKey.setValue(value);//在新创建的键里写入键值,在注册表中按F5刷新一下能看到变化了吧
	}

}
